#include <stdio.h>

namespace sg
{
	class IWeiboAction
	{
		public :
			void virtual Regist() = 0;
			void virtual Login() = 0;
			void virtual Logout() = 0;
			void virtual SendMsg() = 0;
			void virtual Comment() = 0;
	};
	
	class WeiboActionImpl : public IWeiboAction
	{
		public :
			void Regist(){printf("Regist\n");}
			void Login(){printf("Login\n");}
			void Logout(){printf("Logout\n");}
			void SendMsg(){printf("SendMsg\n");}
			void Comment(){printf("Comment\n");}
	};

}

int main()
{
	sg::IWeiboAction* weibo = new sg::WeiboActionImpl();
	weibo->Regist();
	weibo->Login();
	weibo->SendMsg();
	weibo->Comment();
	weibo->Logout();

	printf("-----------------------------\n");

	return 0;
}


